package top.healthylife.gateway.platform.baihang.api.api.bankcardcheck;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0102.req.BHReqBCThreeElementsDto;
import top.healthylife.gateway.platform.baihang.dto.bankcardcheck.bbas0102.res.BHResBCThreeElementsDto;

/**
 * 银行卡三要素核验（银行卡+身份证+姓名）
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "银行卡三要素核验[银行卡身份证姓名]" , info = "银行卡三要素核验（银行卡+身份证+姓名）")
public class BHBCThreeElementsApi implements ParentFace<BHReqBCThreeElementsDto, BHResBCThreeElementsDto> {

    private static final String PRODUCT_CODE = "BBAS0102";

    @Override
    public BHResBCThreeElementsDto execute(BHReqBCThreeElementsDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResBCThreeElementsDto.class);
    }
}
